//
//  shipListCell.m
//  WHB_cargo
//
//  Created by 徐国庆 on 15/12/9.
//  Copyright (c) 2015年 turing. All rights reserved.
//

#import "shipListCell.h"

@implementation shipListCell

- (void)awakeFromNib {
    // Initialization code
    
    // “出发地”与“目的地”
    self.setOutAddressLabel.font = [UIFont systemFontOfSize:16];
    self.aimAddressLabel.font = [UIFont systemFontOfSize:16];
    
    //出发地与目的地之间的图片
    self.directingImage = [[UIImageView alloc] initWithFrame:CGRectMake(self.setOutAddressLabel.frame.origin.x + self.setOutAddressLabel.frame.size.width / 2, self.setOutAddressLabel.frame.origin.y + self.setOutAddressLabel.frame.size.height - 10, 15, 15)];
    self.directingImage.image = [UIImage imageNamed:@"jt_xl"];
    self.directingImage.transform=CGAffineTransformMakeRotation(1.55);
    [self.contentView addSubview:self.directingImage];
    
    // 取消按钮
    self.cancelOrderButton.layer.masksToBounds = YES;
    self.cancelOrderButton.layer.cornerRadius = 5;
    [self.cancelOrderButton setTitle:@"取消订单" forState:UIControlStateNormal];
    [self.cancelOrderButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    
    // "企业报价"
    self.businessPriceLabel.font = [UIFont systemFontOfSize:16];
    self.w_businessPriceLabel.font = [UIFont systemFontOfSize:16];
    
    // “装货时间”
    self.loadingTimeLabel.font = [UIFont systemFontOfSize:16];
    self.w_loadingTimeLabel.font = [UIFont systemFontOfSize:16];
    
    // "运单要求"
    self.listRequireLabel.font = [UIFont systemFontOfSize:16];
    self.w_listRequireLabel.font = [UIFont systemFontOfSize:16];
    
    // "介质"
    self.mediumLabel.font = [UIFont systemFontOfSize:16];
    self.w_mediumLabel.font = [UIFont systemFontOfSize:16];
    
    // "重量"
    self.weightLabel.font = [UIFont systemFontOfSize:16];
    self.w_weightLabel.font = [UIFont systemFontOfSize:16];
    
    // "推送"
    self.vehicle.font = [UIFont systemFontOfSize:16];
    self.w_vehicleLabel.font = [UIFont systemFontOfSize:16];
    self.checkVehicleButton.titleLabel.font = [UIFont systemFontOfSize:13];
    [self.checkVehicleButton setTitle:@"查看推送车辆" forState:UIControlStateNormal];
    self.checkVehicleButton.layer.masksToBounds = YES;
    self.checkVehicleButton.layer.cornerRadius = 4;
    [self.checkVehicleButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
